import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';

const project: AppRouteModule = {
  path: '/basicModule',
  name: 'BasicModule',
  component: LAYOUT,
  redirect: '/basicModule/enterpriseModel',
  id: '2',
  meta: {
    orderNo: 2,
    icon: 'mdi:view-module',
    title: '基础模块',
  },
  children: [
    {
      path: 'enterpriseModel',
      name: 'EnterpriseModel',
      id: '2-1',
      component: () => import('/@/views/project/enterpriseModel/index.vue'),
      meta: {
        title: '企业模型',
      },
    },
    {
      id: '2-2',
      path: 'role',
      name: 'SystemRole',
      component: () => import('/@/views/project/system/role/index.vue'),
      meta: {
        title: '角色管理',
      },
    },
    {
      id: '2-3',
      path: 'account',
      name: 'SystemAccount',
      component: () => import('/@/views/project/system/account/index.vue'),
      meta: {
        title: '账号管理',
      },
    },
    {
      id: '2-4',
      path: 'dataDictionary',
      name: 'DataDictionaryIndexPage',
      component: () => import('/@/views/project/dataDictionary/index.vue'),
      meta: {
        title: '数据字典',
      },
    },
  ],
};

export default project;
